﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.SolveCranks.CCoSCSolveCranksCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.SolveCranks.Resources;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.SolveCranks;

public class CCoSCSolveCranksCmd : TxButtonCommand
{
  private readonly CCoSCSolveCranksCmdEnabler _enabler = new CCoSCSolveCranksCmdEnabler();
  private readonly CApSCSolveCranksApp _app = new CApSCSolveCranksApp();

  public virtual void Execute(object cmdParams)
  {
    this._app.ExecuteWithUI(CApSCSolveCranksApp.ExtractUniqueSupportedObjects(TxApplication.ActiveSelection.GetAllItems()));
  }

  public virtual string Bitmap => "SolveCranks.Resources.SolveCranks.bmp";

  public virtual string LargeBitmap => "SolveCranks.Resources.SolveCranksLarge.png";

  public virtual string Category => CApSCSolveCranksResources.CommandCategory;

  public virtual string Description => CApSCSolveCranksResources.CommandDescription;

  public virtual string Tooltip => CApSCSolveCranksResources.CommandTooltip;

  public virtual string Name => CApSCSolveCranksResources.CommandName;

  public virtual bool Licensed => TxCommandLicenser.SolveCranksLicense;

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this._enabler;
}
